package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.EVENT_TRACKING;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class EventTrackingApi implements IRequestApi, IRequestType {

    private ArrayList<ReqEventTrackingBean> lignum;

    public EventTrackingApi(ArrayList<ReqEventTrackingBean> lignum) {
        this.lignum = lignum;
    }

    @NonNull
    @Override
    public String getApi() {
        return EVENT_TRACKING;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqEventTrackingBean {

        private String control;
        private long irreligious;

        public ReqEventTrackingBean(String control, long irreligious) {
            this.control = control;
            this.irreligious = irreligious;
        }
    }

}

